home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 4
/
CU Amiga Magazine's Super CD-ROM 04 (1996)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1996-11].iso
/
magazine
/
psion
/
utils
/
morph4.lzx
/
ReadMe.txt
Wrap
Text File
|
1996-09-20
|
9KB
|
241 lines
Morphodite, (c) 1995,1996 Ben Clifford (benc@donor2.demon.co.uk)
revision 7: 25 May 1996 (release 4)
revision 3: 19 March 1996
original: 30 December 1995
Contents:
1 What is Morphodite?
2 How does Morphodite work?
3 How do I install Morphodite?
4 How do I use Morphodite?
5 What types does Morphodite support by default?
6 Templates
7 Is Morphodite freeware?
8 How do I add applications to Morphodite?
9 MORPHALS.ODB
10 MorphShadow
You do not need to read or understand all sections of this document in
order to be able to effectively use Morph - the later sections provide
technical details to other hackers.
What is Morphodite?
===================
Morphodite is an application which allows you to have icons for a
specific topic, instead of for a specific application.
Under a Morphodite icon, you can have files of (almost) any type, all
mixed up together.
An example of how I use this myself:
I have one icon for each subject at school: Maths, Physics, Chemistry,
Electronics. Under Physics, I can put spreadsheets of experimental
results. I can also put Word documents of notes about the experiments.
The files appear under one Physics specific list, instead of being
mixed up amongst all my other sheet and word documents.
Morphodite also allows you to have template documents, even for applications
that do not normally support templates.
How does Morphodite work?
=========================
When you open a file under a morphodite list on the system screen,
Morphodite is run and told the name of the data file. It then inspects
this datafile and determines what type it is by the signature at the
start of the file. It looks up in its database (MORPH.ODB) which
application is associated with that type and opens the datafile using
that application, but putting it under the Morphodite list instead of
under the normal list for that application. The initial Morphodite
program then exits, leaving the application ready for use.
How do I install Morphodite?
============================
The files in the supplied archive are already split up into the
appropriate directories. Copy them onto the internal disk of your
Psion into the same directories.
In case you lose the directories somehow:
\app\MORPH.OPA
\opd\MORPH.ODB
\opd\MORPHALS.ODB
\morph\CALC.MOR
\morph\SPELL.MOR
\morph\SPY.MOR
How do I use Morphodite?
========================
If you install morph.opa, you will be given a blank document icon,
under which .MOR files in the \MORPH\ subdirectory will appear - by
default this includes some sample MorphShadows, which you can safely
delete.
You can use this list by itself if you only wish to have one list, or
you can create new Morphodite lists in the usual manner by choosing
"Create new list" on the System screen and specifying a different
directory or extension.
In order to make existing files appear under a morphodite list, you must
i) move the file into the correct directory (\MORPH\ by default)
ii) change the extension to the morphodite extension (.MOR by default)
When you choose "New File" on the system screen, Morphodite will bring
up a dialog box allowing you to choose the type of data file you wish
to create.
What types does Morphodite support by default?
==============================================
MORPH.ODB initially contains entries for the following Series 3a applications:
Agenda
Data
Spreadsheet
Word
Record (eg .wve files)
World
Comms (but not script editor)
OPL source code beginning APP, PROC or REM
OPO object files
IconEd icons
Templates
=========
The template feature allows you to create documents based on
templates, instead of just creating a new blank one of the chosen type
- for example on my Money list, I have a BANKACCT template for new
bank accounts and a MEAL template for meals where one person pays to
keep track of how much people owe.
It works as follows:
When you choose to create a new document, in addition to available
normal types, such as Word or Sheet, at the top of the list appear any
available templates. If you choose a template, then Morph copies the
template to the filename you are creating and opens it.
A template file can be any file that Morphodite can open normally. It
should have the extension .MTP instead of .MOR. Template files are
specific to the directory that you are working in - a template file in
\MONEY\ will only appear when I create a new file under list that uses
\MONEY\ for its data files.
An easy way to create the template is to create a normal Morph file
of the desired type, then make suitable adjustments and entries. After
exiting it, on the system screen, choose File->Rename and rename
"MYTEMPL" to "MYTEMPL.MTP". The file will disappear from the list but
when you create a new file under that list, MYTEMPL will appear in the
Application: dialog box.
Is Morphodite freeware?
=======================
Yes. Morphodite is distributed with no guarantees and no charge - you
may distribute and use it freely.
If you are not careful about filling in the fields correctly in
MORPH.ODB and MORPHALS.ODB, it is possible to crash your Psion.
There is very little error checking in Morphodite, as I have developed
it as a personal project and have decided to release it because I
think others might find it useful.
Please send me comments/criticism/compliments (and if you want to send
me money, sterling cheques payable to B. Clifford, 7 Broke Court,
Guildford GU4 7HQ)
**** FROM NOW ONWARDS IS TECHNICAL STUFF THAT NORMAL PEOPLE DON'T NEED
**** TO READ
How do I add applications to Morphodite?
========================================
NOTE: The datafile must have a unique signature at the very start of
the file identifying its type. This means that you cannot have, say,
arbitary text files under a Morphodite list. However, if your text
files all begin with the same string, then you can use them.
To add an application, open \OPD\MORPH.ODB in Data, add a record and
fill in the five fields:
sig$: The signature at the start of the file. This can be up to sixteen
characters.
app$: The full path and name of the application which will be used to handle
this type of data file
desc$: A brief (eg one or two words) name for the type, which will be used
when you choose to create a New file.
ListT$: The name of the list on the system screen which files of this
type would normally come under.
alias$: The alias information to be passed to the application.
Normally, leave this blank. It is used, as can be seen in the
supplied MORPH.ODB, to cause the Word-Processor to go into
different modes, such as Program Editor mode.
MORPHALS.ODB
============
MORPHALS.ODB allows files opened under one list to appear under
another list when it is opened.
When you open a file under list "x", this list "x" is looked up in
MORPHALS.ODB and if found (along with it's corresponding name "y"),
the file is then opened under list "y". If "x" is not in MORPHALS.ODB,
then the file is opened as normal.
An example, going back to my school-work, I have another list, School,
which has the Agenda button attached to it. Files under
Physics, Maths, Chem or Electr will be opened under School, so I can
use the Agenda button to switch to any open school-related file.
MorphShadow
============
MorphShadow allows you to (rather crudely at the moment) create aliases
to run applications, without them being in the Morphodite directory.
An example of how I use this is I have a "Calc Button" morph list,
assigned to my Calc application button. Under this list, I have
MorphShadows for Calc, Spell and Spy. Also under this list, I have my
normal World application datafile (renamed to World.MOR).
This allows me to cut the number of installed icons down by 3, freeing
up system resources, and, more importantly, allows me to cycle around
them using the only Calc button.
To use MorphShadow: Create a new Morph file as usual, and choose the
MorphShadow type. A dialog box will appear allowing you to enter details
of the application: The image filename (eg ROM::calc.app), any alias
information (eg. if you want to start the text editor in special modes;
just leave blank normally), datafile (also can be left blank for apps
like Calc with no file), appfile (this can be left blank for almost
everything except running OPL code via MorphShadow).
To edit a MorphShadow, choose New file from the system screen, enter the
appropriate filename, answer Yes to Overwrite, reselect MorphShadow. The
previous details will be brought up in the dialog box, for editing.
MorphShadow is a basic interface to FilExecute as found in Psionics
syscalls.1, and reading that might help you understand what you are
doing.
**** If you don't understand, don't mess with this feature - you will
**** be likely to lose data!
Ben Clifford
benc@donor2.demon.co.uk